package kr.ac.kaist.simplefileexplorer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ServiceSelectActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_service_select);

        Button seeSharedBtn = (Button) findViewById(R.id.seeSharedBtn);
        seeSharedBtn.setOnClickListener(new OnClickListener(){
        	public void onClick(View v){
      			
	        		Intent seeSharedIntent = new Intent(getApplicationContext(), SeeSharedActivity.class);
	        		startActivity(seeSharedIntent);
        	}
        });	
        
        Button seeMyFileBtn = (Button) findViewById(R.id.seeMyfileBtn);
        seeMyFileBtn.setOnClickListener(new OnClickListener(){
        	public void onClick(View v){
      			
	        		Intent seeSharedIntent = new Intent(getApplicationContext(), SeeMyFileActivity.class);
	        		startActivity(seeSharedIntent);
        	}
        });		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.service_select, menu);
		return true;
	}

}
